package com.sti.framework.core.web;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Administrator
 */
@Data
public class SimplePage<T> {
    @ApiModelProperty("数据列表")
    private final List<T> list = new ArrayList<>();
    @ApiModelProperty("总条数")
    private final long total;
    @ApiModelProperty("当前页")
    private final long current;
    @ApiModelProperty("每页条数")
    private final long size;

    public SimplePage(List<T> content, long total,long current,long size) {
        this.list.addAll(content);
        this.total = total;
        this.current = current;
        this.size = size;
    }
}
